package com.resume.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @Author: 梁云亮
 * @Date: 2021/7/17 10:00
 * @Describe:用户地址详情表
 */
@ApiModel(value = "用户地址详情表：UserAddr")
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "tb_user_addr")
public class UserAddr implements Serializable {
    private static final long serialVersionUID = 7273850242610979009L;
    /**
     * 编号
     */
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "编号")
    private Integer id;

    /**
     * 具体地址
     */
    @TableField(value = "address")
    @ApiModelProperty(value = "具体地址")
    private String address;

    /**
     * 邮编
     */
    @TableField(value = "postcode")
    @ApiModelProperty(value = "邮编")
    private String postcode;

    /**
     * 状态：1开通，2未开通
     */
    @TableField(value = "status")
    @ApiModelProperty(value = "状态：1开通，2未开通")
    private Integer status;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    @ApiModelProperty(value = "更新时间")
    private LocalDateTime updateTime;

    /**
     * 县区编号，外键
     */
    @TableField(value = "country_id")
    @ApiModelProperty(value = "县区编号，外键")
    private Integer countryId;
}